import axiosInstance from './axiosInstance';

export const videoTypeService = {
  // 获取所有视频类型
  async getAllVideoTypes() {
    return axiosInstance.get('/video-types');
  },
  
  // 获取单个视频类型详情
  async getVideoType(id) {
    return axiosInstance.get(`/video-types/${id}`);
  },
  
  // 创建视频类型
  async createVideoType(params) {
    return axiosInstance.post('/video-types', params);
  },
  
  // 更新视频类型
  async updateVideoType(id, params) {
    return axiosInstance.put(`/video-types/${id}`, params);
  },
  
  // 删除视频类型
  async deleteVideoType(id) {
    return axiosInstance.delete(`/video-types/${id}`);
  }
};